class Bank():
    def __init__(self,card,password,name,money):
        self.card=card
        self.password=password
        self.name=name
        self.money=money
    def withdrawal(self):
        s=int(input("请输入取款金额:"))
        if s<=self.money:
            a = self.money - s
            print("卡号为%s的%s用户,此次取款%d元,卡中余额%d元"%(self.card,self.name,s,a))
        else:
            a=self.money
            print("您的银行卡余额不足,余额:%d"%a)
        self.money=a
    def deposit(self):
        s=int(input("请输入存款金额:"))
        a=self.money+s
        print("卡号为%s的%s用户,此次存款%d元,卡中余额%d元"%(self.card,self.name,s,a))
        self.money = a
zhangsan=Bank("0001",int(input("请输入密码")),"张三",1000)
zhangsan.withdrawal()
zhangsan.deposit()
zhangsan.deposit()
zhangsan.withdrawal()